package com.cy.dda.model.ao.customer;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

import com.cy.dda.model.enums.AttachmentType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 客户附件资料添加字段
 *
 * @author: tanyilin
 * @create: 2018年11月8日 下午3:29:01
 */
@Data
@ApiModel("客户附件资料添加字段")
public class CustomerAttachmentAddAO {

	@ApiModelProperty(value = "客户ID", example = "0")
	@NotNull(message = "客户ID不可为空")
	private Long customerId;
	
	@ApiModelProperty(value = "附件类型")
	@NotNull(message = "附件类型不可为空")
	private AttachmentType attachmentType;
	
	@ApiModelProperty(value = "附件名称")
	private String name;
	
	@ApiModelProperty(value = "路径")
	@NotEmpty(message = "路径不可为空")
	private String path;
}
